package com.haiyi.software.app;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;

public class FragmentDiscover extends Fragment implements OnClickListener {

	private View thisView;

	private Button btn_mlsc;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		super.onCreateView(inflater, container, savedInstanceState);

		thisView = inflater.inflate(R.layout.fragment_discover, null);

		initCom();

		return thisView;

	}

	private void initCom() {

		this.btn_mlsc = (Button) thisView.findViewById(R.id.btn_mlsc);

		this.btn_mlsc.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {

		switch (v.getId()) {
		case R.id.btn_mlsc:

			Intent intent2 = new Intent();

			intent2.setClass(thisView.getContext(), ActivityCharmCityList.class);

			startActivity(intent2);

			break;

		default:
			break;
		}
	}
}